package com.peas.platform.module.icims.contract.initial.enums;

import com.peas.platform.common.core.enums.BaseEnum;
import com.peas.platform.common.core.enums.CommonElType;

public enum ContractInitialBorrowState implements BaseEnum {

    // 0保存、1提交审批、2审批通过、3审批驳回、4撤回
    save("0", "保存", CommonElType.info),
    submit("1", "提交审批", CommonElType.primary),
    pass("2", "审批通过", CommonElType.success),
    reject("3", "审批驳回", CommonElType.danger),
    revocation("4", "撤回", CommonElType.danger),
    borrowed("5", "已借出(待归还)", CommonElType.primary),
    returned("6", "已归还", CommonElType.success),
    ;

    private final String key;
    private final String value;
    private final CommonElType elTagType;

    ContractInitialBorrowState(String key, String value, CommonElType elTagType) {
        this.key = key;
        this.value = value;
        this.elTagType = elTagType;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public CommonElType getElTagType() {
        return elTagType;
    }

}
